package com.learn.project2.controller.wx.user;

import com.learn.project2.model.bo.wx.user.UserIndexBO2;
import com.learn.project2.model.vo.wx.user.UserIndexVO2;
import com.learn.project2.service.wx.user.UserService2;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * \* Author: Valley
 * \* Date: 2022/1/8
 * \* Time: 17:18
 * \* Description:
 */
@RestController
@RequestMapping("wx/user")
public class UserController2 {

    @Autowired
    UserService2 userService2;


    /**
     * @description: 用户首页
     * @param: []
     * @return: com.learn.project2.utils.Result
     * @author 王力
     * @date: 2022-01-10 22:48:21
     */
    @RequestMapping("index")
    public Result index(){
        UserIndexVO2 userIndexVO2 = userService2.userIndex();
        return Result.ok(userIndexVO2);
    }

}
